/*!
 @header UserInfoViewController.h
 @abstract 
 @author 周益
 @version 1.00 2013/02/21 Creation
 Copyright (c) 2013年 mypocketbaby. All rights reserved.
 */

#import <UIKit/UIKit.h>
#import "JSONRequest.h"
#import "InfoPickerViewController.h"
#import "UserAuthPickerViewController.h"
#import "HZAreaPickerView.h"
#import "UICustomPickerView.h"
#import "GKImageCropper.h"
#import "JMFBase.h"

/*!
 @abstract UserInfoViewController的协议，定义了在用户修改头像后，页面不用刷新，马上就能得到修改后的头像的方法
 @discussion @required
 */
@protocol UserInfoViewControllerDelegate <NSObject>

/*!
 @abstract 获得用户修改后的头像，让代理对象做其它处理
 @param image 用户修改后的头像
 */
- (void)avatarViewShouldReload:(UIImage *)image;

@end

/*!
 @abstract UserInfoViewController继承于UITableViewController。
 实现了用户对个人信息的管理，包括头像、姓名、性别、生日、地区和个人签名的管理。
 */
@interface UserInfoViewController : UITableViewController<JSONRequestDelegate, UIActionSheetDelegate, UITextFieldDelegate, InfoPickerViewControllerDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIActionSheetDelegate, UICustomPickerViewDelegate, UICustomPickerViewDataSource, GKImageCropperDelegate>
{
    NSMutableDictionary *_userInfoDataSource;              //个人信息数据源
    UIImageView *_avatarImageView;                         //头像
    UICustomPickerView *_customPickerView;                   //自定义pickerview
    
    NSArray *_sexArray;
    
    NSDictionary *_primeDataSource;                         //最初的数据源
}

/*!
 @abstract UserInfoViewController的代理对象
 此代理必须适应UserInfoViewControllerDelegate
 */
@property (nonatomic, weak) id<UserInfoViewControllerDelegate> delegate;
@end
